<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>测试2</title>
</head>
<body>
测试2
<a sec:authorize="hasRole('ROLE_USER_UPDATE')" href="#">修改</a>
<a sec:authorize="hasRole('ROLE_USER_DEL')" href="#">删除</a>

</body>
</html>